#ifndef MAINWINDOW_H
#define MAINWINDOW_H

using namespace std;

#include <QMainWindow>
#include <QLabel>
#include <QMovie>
#include <QTimer>
#include <QStringList>
#include <QDir>
#include <QDebug>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

    bool GetLocalPicList();
    void LabelSetTextNotFound();
    void SetBaseData(int mstc = 5000, int width = 1920, int height = 267, const QString &picPath = "./static_pic/");
    void Init();

    void ShowOnePage();
    void ShowGif(int x, int y, int w, int h, const QString path);
    void ShowPng(int x, int y, int w, int h, const QString path);
    void ShowHqv(int x, int y, int w, int h, const QString path);


public slots:
    void onTimeout();
    void onTimeHqv();


private:
    Ui::MainWindow *ui;
    QLabel *m_pLabel;
    QLabel *m_pLabelGif;
    QMovie *m_pMovie;
    QTimer *m_pTimer;
    int m_changePicFlag;
    QStringList m_picList;

    QString m_picPath;
    int m_width;
    int m_height;
    int m_mstc;


    int m_index;
    QLabel *m_pHqvLabel;
    QStringList m_imageList;
    QTimer *m_pTimerHqv;


};

#endif // MAINWINDOW_H
